package com.java.day4carsystem.entity;

/**
 * 汽车类
 */
public abstract class Vehicle {

    private String number;
    private String type;
    private float price;
    private String color;
    private float gasValue;

    public Vehicle(String number, String type, float price, String color, float gasValue) {
        this.number = number;
        this.type = type;
        this.price = price;
        this.color = color;
        this.gasValue = gasValue;
    }

    public Vehicle() {
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public float getGasValue() {
        return gasValue;
    }

    public void setGasValue(float gasValue) {
        this.gasValue = gasValue;
    }

    /**
     * 计算租金
     * @return
     */
    public abstract float calculateRentPrice(int days);

    /**
     * 打印信息
     */
    public abstract void print();
}
